﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Git.Storage.Common.ValidateRules
{
    [AttributeUsage(AttributeTargets.Property)]
    public abstract class BaseValidateAttribute : Attribute
    {
        public BaseValidateAttribute(string msg)
        {
            Message = msg;
        }

        protected string? Message { get; set; }


        public abstract (bool, string?) DoAction(object val);

    }
}
